<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<display:table name="listCarservices" id="carservice" pagesize="10" class="affList"
               requestURI="${pageContext.request.contextPath}/carservicePage/carservices/list">           
    <display:column title="Наименование">
        <c:out value='${carservice.name}'/>
    </display:column>
    <display:column style="text-align: left"  title="Адрес">
        <c:out value='${carservice.address}'/>
    </display:column>

    <display:column style="text-align: left" >
        <a href="${pageContext.request.contextPath}/carservicePage/turn/list/<c:out value='${carservice.id}'/>">
            <spring:message code="label.listTurn"/>
        </a>
    </display:column>
    
    <display:column style="text-align: left" >
        <a href="${pageContext.request.contextPath}/carservicePage/carservices/edit/<c:out value='${carservice.id}'/>">
            <spring:message code="label.edit"/>
        </a>
    </display:column>
    <display:column style="text-align: left" >
        <a href="${pageContext.request.contextPath}/carservicePage/carservices/delete/<c:out value='${carservice.id}'/>" >
            <spring:message code="label.delete"/>
        </a>
    </display:column>
</display:table>